const fs=require('fs')
const path=require('path')
//写入对应的日志文件

const logFileName = path.join(__dirname, 'access.log');
//创建写入流
console.log(logFileName)
const writeStream = fs.createWriteStream(logFileName, {
  flags: 'a' //追加
});
module.exports=writeStream